gridpack::utility::CoarseTimer Class Reference
#include <coarse_timer.hpp>
List of all members.
Member Function Documentation
void gridpack::utility::CoarseTimer::configTimer |
( |
bool |
flag |
) |
|
Turn timing on and off. If timing is off, no data is collected.
- Parameters:
-
| flag | turn timer on (true) or off (false) |
int gridpack::utility::CoarseTimer::createCategory |
( |
const std::string |
title |
) |
|
Create a new timer category and return a handle to the category. It is up to the application to keep track of this handle.
- Parameters:
-
| title | the title is the name that will be used to label the timing statistics in the output |
- Returns:
- an integer handle that can be used to refer to this category
double gridpack::utility::CoarseTimer::currentTime |
( |
|
) |
|
Return current time. Can be used to solve timing problems that can't be handled using the regular timing capabilities
- Returns:
- current time in seconds according to internal clock
void gridpack::utility::CoarseTimer::dump |
( |
void |
|
) |
const |
Write all timing statistics to standard out
void gridpack::utility::CoarseTimer::dumpProfile |
( |
const std::string |
title |
) |
|
Write out profile for all processors for requested title
- Parameters:
-
void gridpack::utility::CoarseTimer::dumpProfile |
( |
const int |
idx |
) |
const |
Write out profile for all processors for requested handle
- Parameters:
-
static CoarseTimer* gridpack::utility::CoarseTimer::instance |
( |
|
) |
[static] |
void gridpack::utility::CoarseTimer::start |
( |
const int |
idx |
) |
|
Start timing the category
- Parameters:
-
void gridpack::utility::CoarseTimer::stop |
( |
const int |
idx |
) |
|
Stop timing the category
- Parameters:
-
The documentation for this class was generated from the following file: